# -*- coding: utf-8 -*-
"""
@Time ： 2022/7/13 21:22
@Auth ： Mr. William 1052949192
@Company ：特斯汀学院 @testingedu.com.cn
@Function ：分支
"""
# x，y是整数，z = |x| + |y|
x = input('请输入x：')
y = input('请输入y：')
# 怎么把拿到的x，y变成整数：强转
x, y = int(x), int(y)

# z = x + y
# print(z)
#
# if x>=0 and y>=0:
#     z = x + y
# elif x>=0 and y<0:
#     z = x - y
# elif x<0 and y>=0:
#     z = -x + y
# elif x<0 and y<0:
#     z = -x - y

# if x >= 0 and y >= 0:
#     z = x + y
# elif x >= 0 and y < 0:
#     z = x - y
# elif x < 0 and y >= 0:
#     z = -x + y
# else:
#     z = -x - y
#
# print(z)

if x >= 0:
    if y >= 0:
        z = x + y
    else:
        z = x - y
else:
    if y >= 0:
        z = -x + y
    else:
        z = -x - y

print(z)